Method and apparatus to generate XHTML-Print contents

ABSTRACT

A method and apparatus to generate XHTML data in a terminal, the method and apparatus including setting printing-related parameters to determine contents to be printed from among the contents of one or more standard data items desired to be printed, generating XHTML extension data that can be inserted into XHTML basic data prepared in advance, corresponding to the set contents, and generating the XHTML data by inserting the generated XHTML extension data into the XHTML basic data.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims the benefit of Korean Patent Application No.2006-43135, filed on May 12, 2006, in the Korean Intellectual PropertyOffice and U.S. Provisional Application No. 60/791,412, filed on Apr.13, 2006, in the United States Patent and Trademark Office, thedisclosures of which are incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

Aspects of the present invention relate to extensible hypertext markuplanguage (XHTML)-Print printing data that is printing data in theXHTML-Print language, and more particularly, to a method and apparatusto generate XHTML-Print printing data in which XHTML-Print extensiondata is generated corresponding to contents set by a user by insertingthe generated XHTML-Printing extension data into XHTML-Print basic dataprepared in advance, thus generating the XHTML-Print printing dataadaptively according to an intention of the user.

2. Description of the Related Art

There exists a need for a method of generating XHTML-Print printing datato print a variety of standardized data items stored in a terminal.

SUMMARY OF THE INVENTION

Aspects of the present invention provide a method of generatingXHTML-Print printing data, by which XHTML-Print extension data isgenerated corresponding to contents of standard data desired to beprinted, and by inserting the generated XHTML-Printing extension datainto XHTML-Print basic data prepared in advance.

Aspects of the present invention also provide an apparatus to generateXHTML-Print printing data, which performs the method of generatingXHTML-Print printing data.

Aspects of the present invention also provide a computer-readablerecording medium having embodied thereon a computer program to executethe method of generating XHTML-Print printing data.

According to an aspect of the present invention, there is provided amethod of generating extensible hypertext markup language (XHTML) datacomprising: setting printing-related options to determine contents to beprinted from among predetermined contents of one or more standard dataitems desired to be printed; generating XHTML extension data that can beinserted into XHTML basic data prepared in advance, corresponding to theset contents; and generating the XHTML data by inserting the generatedXHTML extension data into XHTML basic data.

According to another aspect of the present invention, there is providedan apparatus to generate extensible hypertext markup language (XHTML)data comprising: an XHTML data setting unit to set printing-relatedoptions to determine contents to be printed from among predeterminedcontents of one or more standard data items desired to be printed; anXHTML basic data storage unit to store XHTML basic data included inXHTML printing data; an XHTML extension data generation unit to generateXHTML extension data that can be inserted into the XHTML basic dataaccording to the set printing-related options; and an XHTML datageneration unit to read the stored XHTML basic data, and to generate theXHTML printing data by inserting the generated XHTML extension data intothe read XHTML basic data.

According to another aspect of the present invention, there is provideda computer-readable recording medium having embodied thereon a computerprogram to execute a method of generating XHTML data, wherein the methodcomprises: setting printing-related options to determine contents to beprinted from among predetermined contents of one or more standard dataitems desired to be printed; generating XHTML extension data that can beinserted into XHTML basic data prepared in advance, corresponding to theset contents; and generating the XHTML data by inserting the generatedXHTML extension data into the XHTML basic data.

Additional aspects and/or advantages of the invention will be set forthin part in the description which follows and, in part, will be obviousfrom the description, or may be learned by practice of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

These and/or other aspects and advantages of the invention will becomeapparent and more readily appreciated from the following description ofthe embodiments, taken in conjunction with the accompanying drawings ofwhich:

FIG. 1 is a block diagram explaining an apparatus to generateXHTML-Print printing data according to an embodiment of the presentinvention;

FIGS. 2A through 2I are reference diagrams explaining a principle ofgenerating XHTML-Print printing data when standard data is short messageservice (SMS) data, according to an embodiment of the present invention;

FIGS. 3A through 3D are reference diagrams explaining a principle ofgenerating XHTML-Print printing data when standard data is multimediamessaging service (MMS) data, according to an embodiment of the presentinvention;

FIG. 4 is a flowchart illustrating a method of generating XHTML-Printprinting data according to an embodiment of the present invention; and

FIG. 5 is a detailed flowchart of an operation of FIG. 4, where printrelated options are set according to an embodiment of the presentinvention.

DETAILED DESCRIPTION OF THE EMBODIMENTS

Reference will now be made in detail to the present embodiments of thepresent invention, examples of which are illustrated in the accompanyingdrawings, wherein like reference numerals refer to the like elementsthroughout. The embodiments are described below in order to explain thepresent invention by referring to the figures.

FIG. 1 is a block diagram explaining an apparatus to generateXHTML-Print printing data according to an embodiment of the presentinvention. The apparatus includes an XHTML-Print printing data settingunit 110, an XHTML-Print extension data generation unit 130, anXHTML-Print basic data storage unit 140, and an XHTML-Print printingdata generation unit 150.

In the present embodiments, XHTML-Print basic data, XHTML-Printextension data, and XHTML-Print printing data are all XHTML-Print data.It is understood that data described in a markup language other than theXHTML language can also be applied, instead of the XHTML-Print data, inthe embodiments.

The XHTML-Print printing data setting unit 110, the XHTML-Printextension data generation unit 130, the XHTML-Print basic data storageunit 140, and the XHTML-Print printing data generation unit 150 are allincluded in a terminal, and an image forming apparatus is connected tothe terminal by a wired or wireless connection. However, it isunderstood that, according to other aspects, the terminal may beconnected to a data storage apparatus, such as a network sever, and/ormay store the XHTML-Print data in a storage unit or a recordable medium,such as a CD, disk, DVD, flash memory, or SD card. The image formingapparatus can print printing data described in an XHTML-Print language,i.e., XHTML-Print printing data (XHTML-Print Contents). Examples of theterminal include a mobile phone, a digital camera, a computer, and apersonal digital assistant (PDA). Also, examples of the image formingapparatus include a printer and a multi-function peripheral (MFP) havinga printer function.

Data desired to be printed among data stored in the terminal may be datahaving standardized contents (standard data). The standard data is datawhose contents are classified by standardized elements. Accordingly,standard data items of an identical type have common elements. That is,a standard data item, such as a specific text message, has the sameelements as a same-type standard data item, such as another testmessage. Short message service (SMS) data, multimedia messaging service(MMS) data, and e-mail data are examples of the standard data types. Forexample, in the case of SMS data, standard data elements can includedata corresponding to a caller (From), data corresponding to a callee(To), data corresponding to message contents (Message), datacorresponding to a received time (Time), data corresponding to a degreeof importance (Priority Level), data corresponding to a securityrequirement degree (Privacy Level), and/or data corresponding toaccumulated response times (Number of Replies). According to an aspectof the present invention, From, To, Message, Time, Priority Level,Privacy Level, and Number of Replies are standardized elements of theSMS data.

The XHTML-Print printing data setting unit 110 sets printing-relatedoptions to determine contents to be printed from among contents of oneor more standard data items desired to be printed. Examples of theprinting-related options may be a size of a print medium the XHTML-Printprinting data will be printed on, which standard data items will beprinted, and data items of which element will be printed from amongstandard data items desired to be printed.

The XHTML-Print printing data setting unit 110 includes a print mediumsize information storage unit 112, a print medium size specifying unit114, a user interface unit 116, a standard data storage unit 118, astandard data selection unit 120, an element extraction unit 122, and/oran element selection unit 124. However, it is understood that accordingto other aspects, the XHTML-Print printing data setting unit may includeother units to store and/or select other types of printing-relatedoptions.

The print medium size information storage unit 112 stores print mediumsize information. Here, the paper size information is information aboutavailable sizes of print media on which XHTML-Print printing data is tobe printed. The print media may be paper, or any type of tangible mediumon which content may be printed, such as a transparency.

The print medium size specifying unit 114 commands the user interfaceunit 116 to display the print medium size information stored in theprint medium size information storage unit 112. In this case, the userinterface unit 116 displays the stored print medium size information. Bydoing so, the user can recognize what sizes of print media on whichXHTML-Print printing data may be printed are available.

Then, the user may specify a desired size through the user interfaceunit 116 or by manipulating keys disposed on the terminal. According toother aspects, the user may specify a desired size through other methodsand/or devices, such as a touch screen and/or a scroll wheel. By doingso, the paper size specifying unit 114 specifies the size selected bythe user from among the stored paper sizes. Also, the print medium sizespecifying unit 114 reads information on the specified size from thestored print medium size information, and outputs the read informationon the specified size to the XHTML-Print extension data generation unit130.

The standard data storage unit 118 stores one or more standard dataitems. The user interface unit 116 displays the stored standard dataaccording to an instruction from the standard data selection unit 120.By doing so, the user can recognize which standard data items are storedin the terminal. Then, the user can select one or more standard dataitems desired to be printed through the user interface unit 116 or bymanipulating keys disposed on the terminal, and/or by other methods,such as a touch screen and/or a scroll wheel. By doing so, the standarddata selection unit 120 can select one or more standard data itemsdesired to be printed from among the stored standard data items.Meanwhile, the standard data selection unit 120 outputs the selectedstandard data to the XHTML-Print extension data generation unit 130.

The element extraction unit 122 analyzes elements of each of theselected standard data items. By doing so, the element extraction unit122 extracts one or more elements appearing in the selected standarddata, and commands the user interface 116 to display the extractedelements. The user interface unit 116 then displays the extractedelements. Also, the element extraction unit 122 classifies the selectedstandard data items in relation to extracted elements, and matches theclassified data items with the extracted elements.

The element selection unit 124 selects one or more elements desired tobe printed by the user from among the displayed elements. For this, theelement selection unit 124 displays, for example, a window to requestselection of elements desired to be printed through the user interfaceunit 116. Then, the user may select elements desired to be printedthrough the user interface 116 or by manipulating keys, and/or othermethods, such as a touch screen and/or a scroll wheel, disposed on theterminal. By doing so, the element selection unit 124 selects elementsdesired to be printed.

If elements are thus selected, the element selection unit 124 providesinformation on the classified data matched with the selected elementsand the selected elements to the XHTML-Print extension data generationunit 130.

The XHTML-Print extension data generation unit 130 generates XHTML-Printextension data, by using the print medium size specified by the printmedium size specifying unit 114, the one or more standard data itemsselected by the standard data selection unit 120, the one or moreelements extracted by the element extraction unit 122 and the classifieddata items corresponding to the elements, and the one or more elementsselected by the element selection unit 124.

The XHTML-Print basic data storage unit 140 stores essential XHTML-Printbasic data that is included in XHTML-Print printing data. TheXHTML-Print extension data generated in the XHTML-Print extension datageneration unit 130 can be inserted into XHTML-Print basic data.

The XHTML-Print printing data generation unit 150 reads the XHTML-Printbasic data stored in the XHTML-Print basic data storage unit 140, andgenerates XHTML-Print printing data by inserting the generatedXHTML-Print extension data into the read XHTML-Print basic data.

FIGS. 2A through 2I are reference diagrams explaining a principle ofgenerating XHTML-Print printing data when standard data is SMS data,according to an embodiment of the present invention.

The user interface unit 116 displays a window as illustrated in FIG. 2Aaccording to an instruction of the print medium size specifying unit114. Referring to FIG. 2A, the XHTML-Print printing data may be printedon a print medium with a size of 4×6 inch (portrait), 6×4 inch(landscape), A4 portrait, A4 landscape, letter portrait, or letterlandscape. It is understood that other print media sizes, such as legalportrait and/or legal landscape, may be provided.

If the print medium size specifying unit 114 specifies printing ofXHTML-Print printing data on a print medium with a size of 6×4(landscape) without a margin, the XHTML-Print extension data generationunit 130 generates XHTML-Print extension data as @page {size: 6in 4in;margin: 0 in;}.

Likewise, if the print medium size specifying unit 114 specifiesprinting of XHTML-Print printing data on a print medium with a size ofA4 portrait without a margin, the XHTML-Print extension data generationunit 130 generates XHTML-Print extension data as @page {size: A4portrait; margin: 0 in;}.

Similarly, if the print medium size specifying unit 114 specifiesprinting of XHTML-Print printing data on a print medium with a size ofA4 landscape without a margin, the XHTML-Print extension data generationunit 130 generates XHTML-Print extension data as @page {size: A4landscape; margin: 0 in;}.

Also, if the print medium size specifying unit 114 specifies printing ofXHTML-Print printing data on a print medium with a size of letterportrait without a margin, the XHTML-Print extension data generationunit 130 generates XHTML-Print extension data as @page {size: letterportrait; margin: 0 in;}.

Similarly, if the print medium size specifying unit 114 specifiesprinting of XHTML-Print printing data on a print medium with a size ofletter landscape without a margin, the XHTML-Print extension datageneration unit 130 generates XHTML-Print extension data as @page {size:letter landscape; margin: 0 in;}.

However, as illustrated in FIG. 2A, since the print medium sizespecifying unit 114 specifies printing of XHTML-Print printing data on aprint medium with a size of 4×6 inch (portrait), the XHTML-Printextension data generation unit 130 generates XHTML-Print extension dataas @page {size: 4 in 6 in; margin: 0 in.}.

The user interface unit 116 can display all SMS data stored in thestandard data storage unit 118 according to an instruction from thestandard data selection unit 120. Referring to FIG. 2B, the userinterface unit 116 displays a total of 6 SMS data items.

The standard data selection unit 118 can select one or more SMS dataitems desired to be printed from among the displayed SMS data items.Referring to FIG. 2B, the standard data selection unit 118 selects twoSMS data items (a first SMS data item and a third SMS data item) fromamong the displayed SMS data items.

The element extraction unit 122 analyzes each of the selected SMS dataitems, and extracts one or more elements appearing in the selected SMSdata items. In this case, the user interface unit 116 displays theextracted elements. Referring to FIG. 2C, the elements appearing in thefirst SMS data item are a caller (From), a callee (To), message contents(Message), a received time (Time), a degree of importance (PriorityLevel), a security requirement degree (Privacy Level), and accumulatedresponse times (Number of Replies). Also, the elements appearing in thethird SMS data item are caller (From), a callee (To), message contents(Message), and accumulated response times (Number of Replies).

Meanwhile, it may be impossible to select elements that cannot begenerated as. XHTML-Print printing data by the terminal from among theextracted elements. Also, the elements that cannot be selected may bedistinguished from the other elements, as in FIG. 2C where the elementsthat cannot be selected are shaded. For example, if a number for replies(Number for reply) is an element that cannot be generated as XHTML-Printprinting data by the terminal, it may be distinguished from otherelements. According to other aspects, the elements that cannot begenerated as XHTML-Print printing data may be distinguished by othermethods, such as a different font, color, or style, or may not bedisplayed at all.

The element selection unit 124 selects one or more elements desired tobe printed by the user from among the displayed elements. Referring toFIG. 2D, the one or more elements desired to be printed by the user area caller, a callee, message contents and a received time.

Meanwhile, the extracted elements may be divided into header elementsand message elements. Here, the message elements are elements indicatingthe contents of a message and the header elements are elements excludingthe message elements. That is, a caller, a callee, and a received timeare examples of header elements and message contents is a messageelement. In the following examples, the style that each of theseelements is displayed is set as a default. However, the user may set thestyle for each element as desired by the user. To do this, in theXHTML-Print printing data setting unit 110 according to the presentembodiment, a style database (not shown), a style reading unit (notshown) and a style setting unit (not shown) may be provided. In thiscase, the style reading unit (not shown) receives an input about a styledesired by the user, reads a style corresponding to the input from thestyle database (not shown), and provides the style to the style settingunit (not shown). Then the style setting unit (not shown) sets the styleof the elements according to the received style.

FIG. 2E illustrates XHTML-Print basic data stored in the XHTML-Printbasic data storage unit 140, and FIG. 2F illustrates XHTML-Printprinting data that is XHTML-Print basic data into which XHTML-Printextension data is inserted. XHTML-Print extension data generated byusing the contents specified in the print medium size specifying unit114, for example, @page {size: 4 in 6 in; margin: 0 in;}, is insertedinto the XHTML-Print basic data as indicated by subscript 1 shown inFIG. 2F.

The XHTML-Print extension data generation unit 130 generates XHTML-Printextension data by using the elements selected by, for example, theelement selection unit 124 and the classified data items correspondingto the elements. For this, the XHTML-Print extension data generationunit 130 generates XHTML-Print extension data for each of the elementsselected by the element selection unit 124, excluding message contents,as follows:

   <tr>  <td class= “td1”>   selected elements  </td>  <td class= “td2”> .  .  </td>  <td>   data corresponding to the selected elements  </td></tr>

This generated XHTML-Print extension data is inserted into theXHTML-Print basic data, as indicated by subscripts 2, 3, and 4 shown inFIG. 2F.

Also, in the case of the message contents among the elements selected bythe element selection unit 124, the XHTML-Print extension datageneration unit 130 generates XHTML-Print extension data by using </br>indicating the end of a row for each row of the message. This generatedXHTML-Print extension data is inserted between <div class=“BodyBox”> and</div> of the XHTML-Print basic data, as indicated by subscript 5 shownin FIG. 2F.

FIG. 2G illustrates an example of a printed result on which XHTML-Printprinting data generated by the XHTML-Print printing data generation unit150 is printed. As illustrated in FIG. 2G, the size of SMS data can bevariably determined with respect to the quantity of the SMS data. Thatis, FIG. 2F illustrates XHTML-Print data in which a size for printingSMS data is determined with respect to the quantity of the SMS data.

FIG. 2H illustrates another example of a printed result on whichXHTML-Print printing data generated by the XHTML-Print printing datageneration unit 150 is printed. As illustrated in FIG. 2H, the size forprinting the SMS data may also be determined irrespective of thequantity of the SMS data. Thus, in order to determine the size forprinting the SMS data irrespective of the quantity of the SMS data, theXHTML-Print printing data may be described as illustrated in FIG. 2I.

FIGS. 3A through 3D are reference diagrams explaining a principle ofgenerating XHTML-Print printing data when standard data is MMS data,according to an embodiment of the present invention. More specifically,FIGS. 3A and 3C illustrate printed results desired by the user. FIG. 3Billustrates XHTML-Print data in which the size for printing MMS data isdetermined depending on the quantity of the MMS data as illustrated inFIG. 3A. Meanwhile, FIG. 3D illustrates XHTML-Print data in which theprint medium size for printing MMS data is determined irrespective ofthe quantity of the MMS data, as illustrated in FIG. 3C.

A principle of generating XHTML-Print printing data according to anaspect of the present invention, when the standard data is MMS data, isthe same as the principle of generating XHTML-Print printing dataaccording to an aspect of the present invention when the standard datais SMS data. Accordingly, an explanation of the principle of generatingXHTML-Print printing data according to an aspect of the presentinvention when the standard data is SMS data with reference to FIGS. 2Athrough 2I can also be applied to the principle of generatingXHTML-Print printing data according to an aspect of the presentinvention when the standard data is MMS data.

FIG. 4 is a flowchart illustrating a method of generating XHTML-Printprinting data according to an embodiment of the present invention. Themethod is composed of operations 410 through 430 to generate XHTML-Printextension data corresponding to the contents of standard data desired tobe printed, and to generate XHTML-Print printing data by inserting thegenerated XHTML-Print extension data into XHTML-Print basic dataprepared in advance.

The XHTML-Print printing data setting unit 110 sets printing-relatedoptions to determine the contents to be printed from among the contentsof each of standard data items desired to be printed in operation 410.

In operation 420, the XHTML-Print extension data generation unit 130generates XHTML-Print extension data corresponding to the contents setin operation 410.

The XHTML-Print printing data generation unit 150 inserts theXHTML-Print extension data generated in operation 420 into XHTML-Printbasic data prepared in advance and generates XHTML-Print printing datain operation 430.

FIG. 5 is a detailed flowchart of an embodiment 410A of operation 410 ofFIG. 4 according to an embodiment of the present invention, and showsoperations 510 through 540 to set printing-related options.

In operation 510, the size of a print medium on which standard datadesired to be printed is set, and in operation 520, one or more standarddata items are selected from among one or more standard data itemsprepared in advance.

In operation 530, one or more elements are extracted from the standarddata items selected in operation 520, and in operation 540, one or moreelements desired to be printed are selected from among the elementsextracted in operation 530.

The present invention can also be embodied as computer-readable codes ona computer-readable recording medium. The computer-readable recordingmedium is any data storage device that can store data which can bethereafter read by a computer system or a system that can processcomputer codes, or segments thereof. Examples of the computer-readablerecording medium include read-only memory (ROM), random-access memory(RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storagedevices, and etc. The computer-readable recording medium can also bedistributed over network coupled computer systems so that thecomputer-readable code is stored and executed in a distributed fashion.

According to a method and an apparatus to generate XHTML-Print printingdata, XHTML-Print extension data corresponding to the contents ofstandard data desired to be printed is generated, and inserted intoXHTML-Print basic data prepared in advance so that XHTML-Print printingdata is generated. Accordingly, even when data desired to be printed andstored in a terminal has text, XHTML-Print printing data can begenerated. Therefore, the terminal in which the XHTML-Print printingdata generation method is performed can generate XHTML-Print printingdata in order to print SMS data, MMS data, and email data stored in theterminal, even though the terminal does not have many resources comparedto a personal computer.

Although a few embodiments of the present invention have been shown anddescribed, it would be appreciated by those skilled in the art thatchanges may be made in this embodiment without departing from theprinciples and spirit of the invention, the scope of which is defined inthe claims and their equivalents.

What is claimed is:
 1. A method of generating extensible hypertextmarkup language (XHTML) data from predetermined content selected and setwith printing options by a user, said method comprising: by a terminalwhich is distinct from an image forming apparatus, settingprinting-related options to determine contents to be printed from amongone or more predetermined contents of each of one or more standard dataitems; by the terminal, generating XHTML extension data corresponding tothe set printing- related options; and by the terminal, generating XHTMLprinting data by adding the generated XHTML extension data to XHTMLbasic data prepared in advance, wherein the setting of theprinting-related options comprises: selecting the one or more standarddata items from among one or more predetermined standard data items,classifying the one or more predetermined contents of the selected oneor more standard data items according to a content type and selectingthe contents to be printed from among the classified one or morepredetermined contents, wherein contents, from among the classified oneor more predetermined contents, corresponding to a content type thatcannot be generated as XHTML printing data cannot be selected,extracting the one or more predetermined contents of each of theselected one or more standard data items; selecting the contents to beprinted from among the extracted one or more predetermined contents, andclassifying the extracted one or more predetermined contents into aheader contents, which are contents that are not of a message, and amessage contents, which are contents of the message.
 2. The method asclaimed in claim 1, wherein the setting of the printing-related optionscomprises: selecting the contents to be printed from among the one ormore predetermined contents.
 3. The method as claimed in claim 1,wherein the setting of the printing-related options comprisesconfiguring printing settings.
 4. The method as claimed in claim 3,wherein the configuring of printing settings comprises specifying a sizeof a print medium on which the contents to be printed are to be printed.5. The method as claimed in claim 1, wherein the setting of theprinting-related options comprises: classifying the one or morepredetermined contents of the one or more standard data items accordingto a content type and selecting the contents to be printed from amongthe classified one or more predetermined contents.
 6. The method asclaimed in claim 5, wherein the content type is a caller, a callee,message contents, a received time, a degree of importance, a securityrequirement degree, and/or accumulated response times.
 7. The method asclaimed in claim 5, wherein contents, from among the classified one ormore predetermined contents, corresponding to a content type that cannotbe generated as XHTML printing data cannot be selected.
 8. The method asclaimed in claim 1, further comprising: by the terminal, outputting thegenerated XHTML printing data to the image forming apparatus.
 9. Themethod as claimed in claim 1, wherein the one or more standard dataitems are short message service (SMS) data, multimedia messaging service(MMS) data, and/or e-mail data.
 10. A non-transitory computer readablerecording medium encoded with the method of claim 1 implemented by acomputer.
 11. The method as claimed in claim 1, wherein the standarddata items are classified by a type, and wherein the standard data itemscontain elements, and wherein standard data items that are the same typehave common elements.
 12. An apparatus to generate extensible hypertextmarkup language (XHTML) data from predetermined content selected and setwith printing options by a user, said apparatus comprising: an XHTMLdata setting unit to set printing-related options to determine contentsto be printed from among one or more predetermined contents of each ofone or more standard data items; an XHTML basic data storage unit tostore XHTML basic data; an XHTML extension data generation unit togenerate XHTML extension data according to the set printing-relatedoptions; and an XHTML data generation unit to read the stored XHTMLbasic data, and to generate XHTML printing data by adding the generatedXHTML extension data to the read XHTML basic data, wherein the apparatusis included in a terminal which is distinct from an image formingapparatus, wherein the XHTML data setting unit comprises: a standarddata selection unit to select the one or more standard data items fromamong one or more predetermined standard data items, an elementselection unit to classify the one or more predetermined contents of theselected one or more standard data items according to a content type andto select the contents to be printed from among the classified one ormore predetermined contents, wherein contents, from among the classifiedone or more predetermined contents, corresponding to a content type thatcannot be generated as XHTML printing data cannot be selected, anelement extraction unit to extract the one or more predeterminedcontents of each of the selected one or more standard data items, anelement selection unit to select the contents to be printed from amongthe extracted one or more predetermined contents, and wherein theelement selection unit classifies the one or more predetermined contentsinto a header contents, which are contents that are not of a message,and message contents, which are contents of the message.
 13. Theapparatus as claimed in claim 12, wherein the XHTML data setting unitcomprises: an element selection unit to select the contents to beprinted from among the one or more predetermined contents.
 14. Theapparatus as claimed in claim 12, wherein the XHTML data setting unitconfigures printing settings.
 15. The apparatus as claimed in claim 14,wherein the XHTML data setting unit further comprises a print mediumsize specifying unit to specify a size of a print medium on which thecontents to be printed are to be printed.
 16. The apparatus as claimedin claim 12, wherein the XHTML data setting unit comprises: an elementselection unit to classify the one or more predetermined contents of theone or more standard data items according to a content type and toselect the contents to be printed from among the classified one or morepredetermined contents.
 17. The apparatus as claimed in claim 16,wherein the content type is a caller, a callee, message contents, areceived time, a degree of importance, a security requirement degree,and/or accumulated response times.
 18. The apparatus as claimed in claim16, wherein contents, from among the classified one or morepredetermined contents, corresponding to a content type that cannot begenerated as XHTML printing data cannot be selected.
 19. The apparatusas claimed in claim 12, wherein the one or more standard data items areSMS data, MMS data, and/or e-mail data.
 20. The apparatus as claimed inclaim 12, wherein the apparatus is a mobile phone, a digital camera, ora personal digital assistant.
 21. A method of generating extensiblehypertext markup language (XHTML) data from predetermined contentselected and set with printing options by a user, said methodcomprising: by a terminal which is distinct from an image formingapparatus, setting printing-related options to determine contents to beprinted from among one or more predetermined contents of each of one ormore standard data items; and by the terminal, generating XHTML printingdata corresponding to the set printing-related options, wherein thegenerating of the XHTML printing data comprises: generating XHTMLextension data corresponding to the set printing-related options; andgenerating the XHTML printing data by adding the generated XHTMLextension data to XHTML basic data, and wherein the setting of theprinting-related options comprises: selecting the one or more standarddata items from among one or more predetermined standard data items,extracting the one or more predetermined contents of each of theselected one or more standard data items; and selecting the contents tobe printed from among the extracted one or more predetermined contents.22. The method as claimed in claim 21, wherein the setting of theprinting-related options comprises: selecting the contents to be printedfrom among the one or more predetermined contents.
 23. The method asclaimed in claim 21, wherein the setting of the printing-related optionscomprises configuring printing settings.
 24. The method as claimed inclaim 23, wherein the configuring of printing settings comprisesspecifying a size of a print medium on which the contents to be printedare to be printed.
 25. The method as claimed in claim 21, wherein thesetting of the printing-related options comprises: classifying the oneor more predetermined contents of the one or more standard data itemsaccording to a content type and selecting the contents to be printedfrom among the classified one or more predetermined contents.
 26. Themethod as claimed in claim 25, wherein contents, from among theclassified one or more predetermined contents, corresponding to acontent type that cannot be generated as XHTML printing data cannot beselected.
 27. A non-transitory computer readable recording mediumencoded with the method of claim 21 implemented by a computer.
 28. Anapparatus to generate extensible hypertext markup language (XHTML) datafrom predetermined content selected and set with printing options by auser, said apparatus comprising: an XHTML data setting unit to setprinting-related options to determine contents to be printed from amongone or more predetermined contents of each of one or more standard dataitems; and an XHTML extension data generation unit to generate XHTMLextension data according to the set printing-related options, an XHTMLbasic data storage unit to store XHTML basic data; an XHTML datageneration unit to read the stored XHTML basic data, and to generateXHTML printing data by adding the generated XHTML extension data to theread XHTML basic data, wherein the apparatus is included in a terminalwhich is distinct from an image forming apparatus, and wherein the XHTMLdata setting unit comprises: a standard data selection unit to selectthe one or more standard data items from among one or more predeterminedstandard data items, an element extraction unit to extract the one ormore predetermined contents of each of the selected one or more standarddata items; and an element selection unit to select the contents to beprinted from among the extracted one or more predetermined contents. 29.The apparatus as claimed in claim 28, wherein the XHTML data settingunit comprises: an element selection unit to select the contents to beprinted from among the one or more predetermined contents.
 30. Theapparatus as claimed in claim 28, wherein the XHTML data setting unitconfigures printing settings.
 31. The apparatus as claimed in claim 30,wherein the XHTML data setting unit further comprises a print mediumsize specifying unit to specify a size of a print medium on which thecontents to be printed are to be printed.
 32. The apparatus as claimedin claim 28, wherein the XHTML data setting unit comprises: an elementselection unit to classify the one or more predetermined contents of theone or more standard data items according to a content type and toselect the contents to be printed from among the classified one or morepredetermined contents.
 33. The apparatus as claimed in claim 32,wherein contents, from among the classified one or more predeterminedcontents, corresponding to a content type that cannot be generated asXHTML printing data cannot be selected.